<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>用户管理中心 - 用户列表 </title>
<meta name="robots" c>
<meta http-equiv="Content-Type" c />
<link href="__PUBLIC__/Admin/styles/general.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/Admin/styles/main.css" rel="stylesheet" type="text/css" />
</head>
<body>

<h1>
<span class="action-span"><a href="{:U('Admin/User/useradd')}">添加新用户</a></span>
<span class="action-span1"><a href="#">ECSHOP 管理中心</a> </span><span id="search_id" class="action-span1"> - 商品列表 </span>
<div style="clear:both"></div>
</h1>

<div class="form-div">

  <form action="" name="searchForm">
    <img src="__PUBLIC__/Admin/images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
      
    <select name="cat_id" id="cat_id" onchange="change1()">
      <option value="0">年龄</option>
      <foreach name="cate2" item="vo2">
      <option value="{vo2[cat_id]}" >{:(str_repeat("&nbsp;&nbsp;&nbsp;",$vo2[evl]))}{$vo2.cat_name}</option>
      </foreach>
    </select>

   
    <select name="brand_id">
      <option value="0">性别</option>
      <option value="1">诺基亚</option>
      <option value="10">金立</option>
      <option value="9">联想</option>
      <option value="8">LG</option>
      <option value="7">索爱</option>
      <option value="6">三星</option>
      <option value="5">夏新</option>
      <option value="4">飞利浦</option>
      <option value="3">多普达</option>
      <option value="2">摩托罗拉</option>
      <option value="11">  恒基伟业</option>
    </select>

    
    <select name="intro_type">
      <option value="0">院校</option>
      <option value="is_best">精品</option>
      <option value="is_new">新品</option>
      <option value="is_hot">热销</option>
      <option value="is_promote">特价</option>
      <option value="all_type">全部推荐</option>
    </select>
      
    关键字 <input type="text" name="keyword" size="15" />
    <input type="submit" value=" 搜索 " class="button" />
  </form>
</div>
<form method="post" action="" name="listForm" >

  <div class="list-div" id="listDiv">
<table cellpadding="3" cellspacing="1">
  <tr>
    <th>
      <input onclick='listTable.selectAll(this, "checkboxes")' type="checkbox" />
      <a href="#">id</a><img src="__PUBLIC__/Admin/images/sort_desc.gif"/>    </th>

    <th><a href="#">用户id</a></th>
    <th><a href="#">用户名</a></th>
    <th><a href="#">密码</a></th>
    <th><a href="#">年龄</a></th>
    <th><a href="#">性别</a></th>
    <th><a href="#">邮箱</a></th>
    <th><a href="#">院校</a></th>
    <th><a href="#">操作</a></th>
    
  </tr>
  <foreach name="res" item="vo">
  <tr>
    <td align="center"><input type="checkbox" name="checkboxes[]" value="32" />{$vo.id}</td>
    <td align="center" class="first-cell" style=""><span >{$vo.u_id}</span></td>
    <td align="center"<span >{$vo.name}</span></td>
    <td align="center"><span >{$vo.password}</span></td>
    <td align="center"><span >{$vo.age}</span></td>
    <td align="center"><span >{$vo.gender}</span></td>
    <td align="center"><span >{$vo.email}</span></td>
    <td align="center"><span >{$vo.school}</span></td>

    <td align="center">
      <a href="{:U('Admin/User/usercheck',array('id'=>($vo[id])))}" title="查看"><img src="__PUBLIC__/Admin/images/icon_view.gif" width="16" height="16" border="0" /></a>
      <a href="{:U('Admin/User/usermodify',array('id'=>($vo[id])))}" title="编辑"><img src="__PUBLIC__/Admin/images/icon_edit.gif" width="16" height="16" border="0" /></a>
      <a href="{:U('Admin/User/userdel',array('id'=>($vo[id])))}"  title="删除"><img src="__PUBLIC__/Admin/images/icon_trash.gif" width="16" height="16" border="0" /></a>       
     </td>
  </tr>
   </foreach>
</table>
   
<table id="page-table" cellspacing="0">
  <tr>
    <td align="right" nowrap="true">
        {$page} 
    </td>
  </tr>
</table>
</div>
</form>

<div id="footer">
共执行 7 个查询，用时 0.112141 秒，Gzip 已禁用，内存占用 3.085 MB<br />
版权所有 &copy; 2005-2010 上海商派网络科技有限公司，并保留所有权利。</div>
</body>
<script>
    function change1(){
        var cat_id = document.getElementById("cat_id");
        //var url = "__URL__/Goods/goodslist";
        var value1 = cat_id.value;
        //var url = "{:U('Admin/Goods/goodsadd',array('cat_id'=>3))}";
        var url = "{:U('Admin/Goods/goodsnew',array('cat_id'=>value1))}";
        var xhr = new XMLHttpRequest();
        xhr.open("get",url,true);
        xhr.send(null);
    }
  

</script>
</html>